﻿/* 
 *  <copyright file="CGuid.cs" company="Wesley Jowitt">
 *  
 *  SobrietyEngine: Copyright (c) 2011 Wesley Jowitt
 *  
 *  This software is distributed under a software license.
 *   * As of the creation time of this file, the license in use is the Microsoft Permissive License (Ms-PL) 
 *    * The license can be viewed at:
 *     * License.Txt in the root folder of this project
 *      * http://sobrietyengine.codeplex.com/license
 *       * http://www.microsoft.com/opensource/licenses.mspx
 *       
 *  </copyright>
 *   */

using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;

namespace SobrietyEngine.UDMF
{
    public class Vertex : BaseUDMFObject
    {
        public Vector2 Position { get; set; }
        Dictionary<String, String> Data;

        public Vertex()
        {
        }

        override public void Read(Dictionary<String,String> kvps)
        {
            float x = float.Parse(kvps["x"]);
            float y = float.Parse(kvps["y"]);
            Position = new Vector2(x, y);
            Data = kvps;
        }
    }
}
